import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const user: AppRouteModule = {
  path: '/user',
  name: 'User',
  component: LAYOUT,
  redirect: '/user/index',
  meta: {
    orderNo: 20,
    icon: 'ion:information-circle',
    title: '个人信息',
  },
  children: [
    {
      path: 'index',
      name: 'SettingPage',
      component: () => import('/@/views/setting/index.vue'),
      meta: {
        title: '基本设置',
        icon: 'ion:ios-settings',
      },
    },
    {
      path: 'login',
      name: 'LoginLogPage',
      component: () => import('/@/views/log/login.vue'),
      meta: {
        title: '登录记录',
        icon: 'ion:log-in',
      },
    },
    {
      path: 'msg',
      name: 'SystemMsgPage',
      component: () => import('/@/views/system/msg.vue'),
      meta: {
        title: '系统消息',
        icon: 'ion:chatbox-ellipses',
      },
    },
    {
      path: 'msg-info/:id',
      name: 'SystemMsgInfo',
      component: () => import('/@/views/system/msgInfo.vue'),
      meta: {
        title: '系统消息',
        hideMenu: true,
        icon: 'ion:chatbox-ellipses',
      },
    },
  ],
};

export default user;
